/**
 * @className Cart
 * @author liuxuelin
 * @Date 2021/1/16
 * @version v1.0
 */

package com.hidt.shop.domain;
//购物车实体类
public class Cart {
    private int cart_id; //购物车id
    private int user_id; //用户id
    private int goods_id;//商品id
    private int count;//对应商品的数量

    public int getCart_id() {
        return cart_id;
    }

    public void setCart_id(int cart_id) {
        this.cart_id = cart_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Cart() {
    }

    public Cart(int cart_id, int user_id, int goods_id, int count) {
        this.cart_id = cart_id;
        this.user_id = user_id;
        this.goods_id = goods_id;
        this.count = count;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cart_id=" + cart_id +
                ", user_id=" + user_id +
                ", goods_id=" + goods_id +
                ", count=" + count +
                '}';
    }
}
